Skip to main content

Amazon ElastiCache

  • ElastiCache manage Redis or Memcached.
  • Using ElastiCache involves heavy code changes.
RedisMemcached
Multi AZ with failoverMulti-Node for sharding
Read replicas to scale reads; high availabilityNo high availability
Data durabilityNon persistent
Supports sets and sorted setsMulti-threaded architecture

Cache Security

  • Supports IAM Authentication for Redis.
  • IAM policies on ElastiCache are only used for AWS API-level security.
  • Redis AUTH
    • Set password/token, Supports SSL in flight encryption.
  • Memcached
    • Supports SASL-based authentication

Patterns for ElastiCache

  • Lazy Loading: all read data is cached which becomes stale.
  • Write Through: adds/updates data when written to DB.
  • Session Store: store temporary session data.